package utils;

public class Page {
    private int totalCount;
    //totalCount 总行数
    private int totalPage;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage%pageSize==0?totalPage/pageSize:totalPage/pageSize+1;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    //总页数
    private int totalSize;
    //每页显示的行数
    private int pageSize=10;
    //当前页码
    private int currentPage;

    public Page() {

    }
    //List<>list=

}
